package com.zr.controller.sys

import com.alibaba.fastjson.JSON
import com.zr.service.sys.impl.RoleServerImpl
import com.zr.util.Result
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController

@RestController
@RequestMapping("/sys/role")
class RoleController {

    @Autowired
    val roleService: RoleServerImpl?=null
    @RequestMapping("/selectList")
    fun selectList():String{
        val result=roleService?.selectList()
        return JSON.toJSONString(Result(true,"查询成功",result))
    }
}